package com.example.friend.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
//关联数据库表明
@TableName("tb_exam")
public class Exam extends BaseEntity {
    //雪花算法生成id
    @TableId(value = "EXAM_ID",type = IdType.ASSIGN_ID)
    private Long examId;
    private String title;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Integer status = 0;
}
